import QtQuick 2.12
import QtQuick.Controls 2.12
import ".."

RadioButton {
    id: control
    font.family: Common.fontMain
    font.pixelSize: 14
    indicator: Rectangle {
        width: parent.height
        height: width
        radius: height / 2
        border.color: control.checked ? Common.colorMain : Common.colorText
        border.width: control.checked ? height / 4 : 1
        color: control.checked ? Common.colorTransParent : Common.colorInvalid
    }
    contentItem: Label {
        text: control.text
        font: control.font
        color: Common.colorMain
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        leftPadding: control.indicator.width + control.spacing
    }
}
